package com.ruoyi.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.demo.domain.AcProjectInputRecord;
import com.ruoyi.demo.mapper.AcProjectInputRecordMapper;
import com.ruoyi.demo.service.IAcProjectInputRecordService;

/**
 * 用户输入记录Service业务层处理
 *
 * @author CMee
 * @date 2025-10-24
 */
@Service
public class AcProjectInputRecordServiceImpl extends ServiceImpl<AcProjectInputRecordMapper, AcProjectInputRecord>
    implements IAcProjectInputRecordService {
    @Autowired
    private AcProjectInputRecordMapper acProjectInputRecordMapper;

    /**
     * 查询用户输入记录
     *
     * @param tableId 用户输入记录主键
     * @return 用户输入记录
     */
    @Override
    public AcProjectInputRecord selectAcProjectInputRecordByTableId(Long tableId) {
        return acProjectInputRecordMapper.selectAcProjectInputRecordByTableId(tableId);
    }

    /**
     * 查询用户输入记录列表
     *
     * @param acProjectInputRecord 用户输入记录
     * @return 用户输入记录
     */
    @Override
    public List<AcProjectInputRecord> selectAcProjectInputRecordList(AcProjectInputRecord acProjectInputRecord) {
        return acProjectInputRecordMapper.selectAcProjectInputRecordList(acProjectInputRecord);
    }

    /**
     * 新增用户输入记录
     *
     * @param acProjectInputRecord 用户输入记录
     * @return 结果
     */
    @Override
    public int insertAcProjectInputRecord(AcProjectInputRecord acProjectInputRecord) {
        return acProjectInputRecordMapper.insertAcProjectInputRecord(acProjectInputRecord);
    }

    /**
     * 修改用户输入记录
     *
     * @param acProjectInputRecord 用户输入记录
     * @return 结果
     */
    @Override
    public int updateAcProjectInputRecord(AcProjectInputRecord acProjectInputRecord) {
        return acProjectInputRecordMapper.updateAcProjectInputRecord(acProjectInputRecord);
    }

    /**
     * 批量删除用户输入记录
     *
     * @param tableIds 需要删除的用户输入记录主键
     * @return 结果
     */
    @Override
    public int deleteAcProjectInputRecordByTableIds(Long[] tableIds) {
        return acProjectInputRecordMapper.deleteAcProjectInputRecordByTableIds(tableIds);
    }

    /**
     * 删除用户输入记录信息
     *
     * @param tableId 用户输入记录主键
     * @return 结果
     */
    @Override
    public int deleteAcProjectInputRecordByTableId(Long tableId) {
        return acProjectInputRecordMapper.deleteAcProjectInputRecordByTableId(tableId);
    }
}